package com.thf.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.thf.mapper.NewsMapper;
import com.thf.model.NewsModels;
import com.thf.service.NewsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class NewsServiceImpl extends ServiceImpl<NewsMapper, NewsModels> implements NewsService {
    @Resource
    private NewsMapper newsMapper;
    @Override
    public List<NewsModels> findNewsInfoPage(Integer id) {
        return newsMapper.findNewsInfoPage(id);
    }
}
